// src/store/slice/token.ts
import { createSelector } from "@reduxjs/toolkit";
import { AppState } from "@store/index";;
/***********/
interface Credentials{
    token: string;
}
// 用于获取 token 的选择器
export const selectToken = createSelector<[(state: AppState) => Credentials],string>(
  (state) => state.credentialsReducer,
  (state) => state.token
);